package com.dfrz.service;

import com.dfrz.entity.Video;
import com.dfrz.entity.VideoDetail;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author 29877
 */
public interface VideoDetailService {
    int insertAll(VideoDetail videoDetail, MultipartFile detailImg, MultipartFile detailVideo) throws Exception;
    List<VideoDetail> selectdetialbyvid(Integer vid);
    List<VideoDetail> selectdetialbytitle(String word);
    VideoDetail getdetailinfobyid(Integer vid);
    List<Object> getVideoByRandom();
    List<Object> getVideoByRandomM();
    void deleteDetailByVideoId(Integer videoId);
    List<Object> getMyVideo(Integer userId, String videoTitle);

    Map<String,Object> getCheckVideo();

    void updataCheck(Integer videoId);

    List<Object> getPageing(Integer page);

    Map<String,Object> selectvideoByName(String videoTitle);
}
